package com.lsfb.signsys.my;

import com.lsfb.signsys.HttpUtils;
import com.lsfb.signsys.compatible.Token;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import retrofit2.HttpException;

/**
 * Created by zgscwjm on 2018/4/2.
 */

public class MyRepository {

    private MyDataSource mMyDataSource;

    public MyRepository() {
        mMyDataSource = HttpUtils.getService(MyDataSource.class);
    }

    public Observable<MyInfoBean> getInfo() {
        return HttpUtils.result(mMyDataSource.getInfo());
    }
}
